package com.gupao.edu.study.singleton;
/*
 * @Author:
 * @Description: 懒汉
 * @Date 11:02 2018/3/8
 * @param null
 * @return
 */
public class Lazy {
    //实例对象
    private static Lazy instance;
    //私有构造
    private Lazy() {
    }
    //get实例静态方法
    public static Lazy getInstance(){
        if(instance == null){
            instance = new Lazy();
        }
        return instance;
    }
}
